/*
 * @Author: your name
 * @Date: 2021-04-21 14:59:24
 * @LastEditTime: 2021-04-21 14:59:25
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \provider_demo\lib\counter_model.dart
 */

import 'package:flutter/foundation.dart';

class CounterModel with ChangeNotifier {
  int _count = 0;
  int get counter => _count;

  void increment() {
    _count++;
    notifyListeners();
  }
}
